<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<form id="pagerForm" method="post" action="${pageContext.request.contextPath}/fueling/list">
    <input type="hidden" name="pageNum" value="1" />  
    <input type="hidden" name="numPerPage" value="${collectionTO.pageSize}" />
    <input type="hidden" name="fuellingOrderId" value="${searchCriteria.fuellingOrderId}" />
    <input type="hidden" name="stationId" value="${searchCriteria.stationId}" />
    <input type="hidden" name="pr" value="${searchCriteria.pr}" />
    <input type="hidden" name="memberName" value="${searchCriteria.memberName}" />
    <input type="hidden" name="groupNo" value="${searchCriteria.groupNo}" />
    <input type="hidden" name="stationAdminName" value="${searchCriteria.stationAdminName}" />
    <input type="hidden" name="paidTypeId" value="${searchCriteria.paidTypeId}" />
    <input type="hidden" name="payStatus" value="${searchCriteria.payStatus}" />
    <input type="hidden" name="beginDate" value="${searchCriteria.beginDate}" />
    <input type="hidden" name="endDate" value="${searchCriteria.endDate}" />
    
    
</form>


<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="${pageContext.request.contextPath}/fueling/list" method="post">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>订单id</label>
				<input style="width:75px" type="text" name="fuellingOrderId"  value="${searchCriteria.fuellingOrderId}" />
			</li>
			<li>
				<label>油站id</label>
				<input style="width:75px" type="text" name="stationId" value="${searchCriteria.stationId}" />
			</li>
			<li>
				<label>油品</label>
				<input style="width:75px" type="text" name="pr" value="${searchCriteria.pr}" />
			</li>
			<li>
				<label>加油客户名称</label>
				<input style="width:75px" type="text" name="memberName" value="${searchCriteria.memberName}" />
			</li>
			
		</ul>
		<ul class="searchContent">
			<li>
				<label>班次号</label>
				<input style="width:75px" type="text" name="groupNo" value="${searchCriteria.groupNo}" />
			</li>
			<li>
				<label>加油员姓名</label>
				<input style="width:75px" type="text" name="stationAdminName" value="${searchCriteria.stationAdminName}" />
			</li>
			<li>
				<label>支付渠道</label>
				<select name="paidTypeId">
					<option value="" >请选择</option>
					<option value="-1" <c:if test="${searchCriteria.paidTypeId == -1}">selected="selected"</c:if>>无需支付</option>
					<option value="0" <c:if test="${searchCriteria.paidTypeId == 0}">selected="selected"</c:if>>待确定</option>
					<option value="1" <c:if test="${searchCriteria.paidTypeId == 1}">selected="selected"</c:if>>现金</option>
					<option value="2" <c:if test="${searchCriteria.paidTypeId == 2}">selected="selected"</c:if>>余额支付</option>
					<option value="3" <c:if test="${searchCriteria.paidTypeId == 3}">selected="selected"</c:if>>支付宝</option>
					<option value="4" <c:if test="${searchCriteria.paidTypeId == 4}">selected="selected"</c:if>>微信</option>
				</select>
			</li>
			<li>
				<label>支付状态</label>
				<select name="payStatus">
					<option value="">请选择</option>
					<option value="-1"  <c:if test="${searchCriteria.payStatus == -1}">selected="selected"</c:if>>无需支付</option>
					<option value="0"  <c:if test="${searchCriteria.payStatus == 0}">selected="selected"</c:if>>待确定</option>
					<option value="1"  <c:if test="${searchCriteria.payStatus == 1}">selected="selected"</c:if>>已支付</option>
				</select>
			</li>
		</ul>
		<ul class="searchContent">
			<li>
				<label>交易日期</label>
				<input style="width:75px" type="text" name="beginDate" class="date textInput readonly valid" readonly="true" value="<fmt:formatDate value="${searchCriteria.beginDate}" type="date" dateStyle="long" />" />~
				<input style="width:75px" type="text" name="endDate" class="date textInput readonly valid" readonly="true" value="<fmt:formatDate value="${searchCriteria.endDate}" type="date" dateStyle="long" />" />
			</li>
			
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
				<!-- <li><a class="button" href="demo_page6.html" target="dialog" mask="true" title="查询框"><span>高级检索</span></a></li> -->
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
	 			<option value="10" <c:if test="${collectionTO.pageSize==15}">selected</c:if>>10</option>
			</select>
			<span>条，共${totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="${totalCount}" numPerPage="${collectionTO.pageSize}" pageNumShown="10" currentPage="${collectionTO.pageNo}"></div>
	</div>
	<div class="panelBar">
		<ul class="toolBar">
			<li><a target="navTab" href="${pageContext.request.contextPath}/fueling/details?fuellingOrderId={sid_user}" class="icon"><span>详情</span></a></li>
			<li class="line">line</li>
			<li class=""><a title="实要导出这些记录吗?" targettype="navTab" target="dwzExport" href="${pageContext.request.contextPath}/fueling/dataExport" class="icon"><span>导出EXCEL</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="80">订单id</th>
				<th width="80">油站id</th>
				<th width="80">油枪号</th>
<!-- 				<th width="80">提枪时间</th> -->
<!-- 				<th width="80">挂枪时间</th> -->
				<th width="80">油品</th>
				<th width="80">升数</th>
				<th width="80">单价</th>
				<th width="80">油枪累计升数</th>
				<th width="80">油枪累计金额</th>
				<th width="80">加油客户id</th>
				<th width="80">加油客户名称</th>
				<th width="80">帐户车牌号</th>
<!-- 				<th width="80">班次号</th> -->
<!-- 				<th width="80">员工id</th> -->
<!-- 				<th width="80">加油员姓名</th> -->
<!-- 				<th width="80">收银员</th> -->
<!-- 				<th width="80">支付渠道</th> -->
				<th width="80">支付状态</th>
				<th width="80">支付时间</th>
				<th width="80">应收金额</th>
				<th width="80">实收金额</th>
<!-- 				<th width="80">即时优惠金额</th> -->
<!-- 				<th width="80">积分抵扣金额</th> -->
<!-- 				<th width="80">授权号</th> -->
				<th width="80">创建时间</th>
<!-- 				<th width="80">计算状态</th> -->
<!-- 				<th width="80">下放同步状态</th> -->
				
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${collectionTO.list}" var="bean" varStatus="status">
				<tr target="sid_user" rel="${bean.fuellingOrderId}">
					<td>${bean.fuellingOrderId}</td>
					<td>${bean.stationId}</td>
					<td>${bean.fpId}</td>
<%-- 					<td>${bean.fpStartTime}</td> --%>
<%-- 					<td>${bean.fpEndTime}</td> --%>
					<td>${bean.pr}</td>
					<td>${bean.vol}</td>
					<td>${bean.price}</td>
					<td>${bean.totalVol}</td>
					<td>${bean.totalAmount}</td>
					<td>${bean.memberId}</td>
					<td>${bean.memberName}</td>
					<td>${bean.memberLicensePlate}</td>
<%-- 					<td>${bean.groupNo}</td> --%>
<%-- 					<td>${bean.stationAdminId}</td> --%>
<%-- 					<td>${bean.stationAdminName}</td> --%>
<%-- 					<td>${bean.stationCashier}</td> --%>
<!-- 					<td> -->
<%-- 						<c:if test="${bean.paidTypeId == -1}">无需支付</c:if> --%>
<%-- 						<c:if test="${bean.paidTypeId == 0}">待确定</c:if> --%>
<%-- 						<c:if test="${bean.paidTypeId == 1}">现金</c:if> --%>
<%-- 						<c:if test="${bean.paidTypeId == 2}">余额支付</c:if> --%>
<%-- 						<c:if test="${bean.paidTypeId == 3}">支付宝</c:if> --%>
<%-- 						<c:if test="${bean.paidTypeId == 4}">微信</c:if> --%>
<!-- 					</td> -->
					<td>
						<c:if test="${bean.payStatus == -1}">无需支付</c:if>
						<c:if test="${bean.payStatus == 0}">待确定</c:if>
						<c:if test="${bean.payStatus == 1}">已支付</c:if>
					</td>
					<td><fmt:formatDate value="${bean.payTime}" type="date" dateStyle="long" /></td>
					<td>${bean.receivableAmount}</td>
					<td>${bean.realincomeAmount}</td>
<%-- 					<td>${bean.discountAmount}</td> --%>
<%-- 					<td>${bean.integralAmount}</td> --%>
<%-- 					<td>${bean.authorityId}</td> --%>
					<td><fmt:formatDate value="${bean.createdTime}" type="date" dateStyle="long" /></td>
<!-- 					<td> -->
<%-- 						<c:if test="${bean.calculStatus == 1}">已计算</c:if> --%>
<%-- 						<c:if test="${bean.calculStatus == 0}">未计算</c:if> --%>
<!-- 					</td> -->
<%-- 					<td>${bean.dwonloadSyncStatus}</td> --%>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
